from django.shortcuts import render

from chat.models import History_coin

from myapp.tests import pt
from rest_framework.views import APIView
from rest_framework.response import Response
# Create your views here.

#历史货币
class V(APIView):
    def get(self,request):
        s=History_coin.objects.bulk_create(History_coin(**i) for i in pt)
        s.save()
        return Response({'msg':'成功'})

